package alo.p6.work5;

import alo.p6.AVLTreeNode;

/**
 * @ClassName Height
 * @Description 返回平衡二叉搜索树的高度
 * @Author Fanxc
 * @DATE 2021/2/25 12:05
 * @Version 1.0
 */
public class Height {
    int height(AVLTreeNode root){
        if(root==null){
            return -1;
        }else {
            return root.getHeight();
        }
    }
}
